// 拖拽
import draggable from '@/directives/vDraggable'
// 阻止冒泡
import stopPropagation from '@/directives/vStopPropagation'
// 右键生成菜单
import rightclick from '@/directives/VRightclick'
// 拖拽四边改变大小
import resizeable from '@/directives/vResizeable'

// 自定义指令
const directives = {
  draggable,
  stopPropagation,
  rightclick,
  resizeable
}

export default {
  install(Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.directive(key, directives[key])
    })
  },
}